from rest_framework.routers import DefaultRouter

from booktest import views

urlpatterns = [
]

# 3.路由
router = DefaultRouter()
router.register(r'books', views.BookInfoViewSet, base_name="books")
urlpatterns += router.urls